package com.wlc.one;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王立朝
 * @date 2022/11/22
 * @description:
 */
@RestController
@RequestMapping("/test")
public class GetConfigValueService {

    @Resource
    private TestConfig config;
    @GetMapping("/")
    public String hello() {
        String result = config.getName() + config.getAddress() + config.getAge();
        return result;
    }
}
